package com.cleaningcloud.erp.domain;

import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.cleaningcloud.common.security.handler.DictHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cleaningcloud.common.core.annotation.Excel;

/**
 * 供应商管理对象 erp_supplier
 * 
 * @author cleaningcloud
 * @date 2024-09-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ErpSupplier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 供应商ID */
    private Long supplierId;

    /** 供应商编号 */
    @Excel(name = "供应商编号")
    private String supplierNo;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 供方类别(1供应2供货) */
    @Excel(name = "供方类别", readConverterExp = "1=供应,2=供货")
    private Long supplierType;

    /** 存货类型(1成品2半成品) */
    @Excel(name = "存货类型", readConverterExp = "1=成品,2=半成品")
    private Long inventoryType;

    /** 公司名称 */
    private String companyName;

    /** 产品类型(字典表erp_product_type) */
    @Excel(name = "产品类型", handler = DictHandler.class, args = {"erp_product_type"})
    private Long productType;

    /** 联系人 */
    @Excel(name = "联系人")
    private String linkman;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String linkmanPhone;

    /** 开户银行 */
    @Excel(name = "开户银行", handler = DictHandler.class, args = {"erp_bank_name"})
    private String bankName;

    /** 银行账号 */
    @Excel(name = "银行账号")
    private String bankAccount;

    /** 银行卡号 */
    @Excel(name = "银行卡号")
    private String bankCard;

    /** 纳税人识别号 */
    @Excel(name = "纳税人识别号")
    private String taxpayerNo;

    /** 供应商地址 */
    @Excel(name = "供应商地址")
    private String supplierAddress;

    /** 创建人ID */
    private Long createId;

    /** 创建人名称 */
    private String createName;

    /** 备注是否关闭 */
    private String flag;

    // 批量导出ids
    private String exportIds;
}
